/**
 * Created by hejg on 2018/6/5.
 */
import React, {Component} from 'react';
import {
    View,
    StyleSheet, Platform,
    Text, StatusBar
} from 'react-native';
import Header from '../../components/Header';
import Style from '../../components/Style';

export default class OtherScreen extends Component {
    static navigationOptions = {
        title: '',
        // header:null
    };

    componentDidMount() {
        this._navListener = this.props.navigation.addListener('didFocus', () => {
            Platform.OS === 'android' && StatusBar.setBackgroundColor(Style.color.blue);
        });
    }

    componentWillUnmount() {
        this._navListener.remove();
    }

    render() {
        return (
            <View style={styles.container}>
                <Header headerTitle="发现" headerLeft={<View/>}/>
                <Text>发现相关功能尚未开放</Text>
                {/*<Button title="跳转到首页" onPress={this._showMoreApp} style={{marginVertical:5}}/>*/}
                {/*<Button title="跳转到其它" onPress={this._showMapApp} style={{marginVertical:5}}/>*/}
                {/*<Button title="注销" onPress={this._signOutAsync} style={{marginVertical:5}}/>*/}
                {/*<StatusBar barStyle="default" />*/}
            </View>
        );
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: Style.color.screen
    },
});